<template>
	<view>
		<view class="indexbg"><u--image :mode="'aspectFill'" :src="bgimg" width="100%" height="400rpx"></u--image></view>
		<view class="index-content">
			<uni-grids :list="gridslist"></uni-grids>
			<uni-propelling :propellingdata="data"></uni-propelling>
			<uni-sellingProducts></uni-sellingProducts>
			<uni-Helper></uni-Helper>
			<uni-lastbtn :text="'快来画地块吧'" @btnfun="btnfun"></uni-lastbtn>
			<uni-lastbtn :text="'管农场'" @btnfun="goguangnc"></uni-lastbtn>
		</view>
	</view>
</template>

<script>

export default {
	data() {
		return {
			bgimg:
				'',
			gridslist: [
				{
					name: '画地块',
					id: 1,
					img:
						''
				},
				{
					name: '种植管理',
					id: 2,
					img:
						''
				},
				{
					name: '巡田地',
					id: 3,
					img:
						''
				},
				{
					name: '物联监测',
					id: 4,
					img:
						''
				},
				{
					name: '环境气象',
					id: 5,
					img:
						''
				}
			],
			data: {
				propellingImg:
					'',
				hotText: '热',
				text: '眉山市农贸大菜市就葡萄价格进行了统一的上调！'
			}
		};
	},
	onLoad() {
	},
	
	methods: {
		
		btnfun(d) {
			uni.navigateTo({
				url: '/subpkg/drawmaps/drawmaps'
			});
		},
		goguangnc(d) {
			uni.navigateTo({
				url: '/pages/guannc/guannc'
			});
		}
	}
};
</script>

<style lang="scss">
page {
	background: #f6f6f6;
}

.index-content {
	padding-bottom: 10rpx;
}
</style>
